<div class="featuredRow">
  <dl>
    <% for event in @to_list %>
      <dt><div id="tituloCurso"><%= link_to h(event.name), { :action => 'view', :id => event }, :id => "tituloCurso" %></dt></div>
	  <dd><span class="terminoCurso">Comienza</span>:
      <%= date_spanish event.due_date, true %>
      </dd>
	  <br />
      <dd><span class="terminoCurso">Hasta</span>:
      <%= date_spanish event.expire_date, true %>
      </dd>
	  <br />
      <% if is_admin? or event.user == current_user %>
        <dd class="linkED">
        <%= link_to 'EDITAR', { :controller => 'event', :action => 'edit', :id => event }, :class => "linkED" %>
        &nbsp;&nbsp;|&nbsp;&nbsp;
        <%= link_to 'BORRAR', { :controller => 'event', :action => 'remove', :id => event }, :class => "linkED", :method => 'post', :confirm => "¿Seguro que desea borrar el event #{event.name} y todos sus datos relacionados?" %>
        </dd>
      <% end %>
      <br />
    <% end %>
  </dl>
</div>

<div class="featuredRow">
  <span class="linkED">
    <%= pagination_links @event_pages, :window_size => 3 %>
  </span>
</div>
